package org.hxyjs.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Books implements Serializable {
    private String bno;

    private String ano;

    private String prno;

    private String bkno;

    private String bname;

    private String bdate;

    private String bauthor;

    private String bprice;

    private String bdescribe;

    private String bnumber;

    private String bheat;

    private String bimg;

    private Integer bstate;

    private static final long serialVersionUID = 1L;

    public String getBno() {
        return bno;
    }

    public void setBno(String bno) {
        this.bno = bno;
    }

    public String getAno() {
        return ano;
    }

    public void setAno(String ano) {
        this.ano = ano;
    }

    public String getPrno() {
        return prno;
    }

    public void setPrno(String prno) {
        this.prno = prno;
    }

    public String getBkno() {
        return bkno;
    }

    public void setBkno(String bkno) {
        this.bkno = bkno;
    }

    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }

    public String getBdate() {
        return bdate;
    }

    public void setBdate(String bdate) {
        this.bdate = bdate;
    }

    public String getBauthor() {
        return bauthor;
    }

    public void setBauthor(String bauthor) {
        this.bauthor = bauthor;
    }

    public String getBprice() {
        return bprice;
    }

    public void setBprice(String bprice) {
        this.bprice = bprice;
    }

    public String getBdescribe() {
        return bdescribe;
    }

    public void setBdescribe(String bdescribe) {
        this.bdescribe = bdescribe;
    }

    public String getBnumber() {
        return bnumber;
    }

    public void setBnumber(String bnumber) {
        this.bnumber = bnumber;
    }

    public String getBheat() {
        return bheat;
    }

    public void setBheat(String bheat) {
        this.bheat = bheat;
    }

    public String getBimg() {
        return bimg;
    }

    public void setBimg(String bimg) {
        this.bimg = bimg;
    }

    public Integer getBstate() {
        return bstate;
    }

    public void setBstate(Integer bstate) {
        this.bstate = bstate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Books other = (Books) that;
        return (this.getBno() == null ? other.getBno() == null : this.getBno().equals(other.getBno()))
            && (this.getAno() == null ? other.getAno() == null : this.getAno().equals(other.getAno()))
            && (this.getPrno() == null ? other.getPrno() == null : this.getPrno().equals(other.getPrno()))
            && (this.getBkno() == null ? other.getBkno() == null : this.getBkno().equals(other.getBkno()))
            && (this.getBname() == null ? other.getBname() == null : this.getBname().equals(other.getBname()))
            && (this.getBdate() == null ? other.getBdate() == null : this.getBdate().equals(other.getBdate()))
            && (this.getBauthor() == null ? other.getBauthor() == null : this.getBauthor().equals(other.getBauthor()))
            && (this.getBprice() == null ? other.getBprice() == null : this.getBprice().equals(other.getBprice()))
            && (this.getBdescribe() == null ? other.getBdescribe() == null : this.getBdescribe().equals(other.getBdescribe()))
            && (this.getBnumber() == null ? other.getBnumber() == null : this.getBnumber().equals(other.getBnumber()))
            && (this.getBheat() == null ? other.getBheat() == null : this.getBheat().equals(other.getBheat()))
            && (this.getBimg() == null ? other.getBimg() == null : this.getBimg().equals(other.getBimg()))
            && (this.getBstate() == null ? other.getBstate() == null : this.getBstate().equals(other.getBstate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBno() == null) ? 0 : getBno().hashCode());
        result = prime * result + ((getAno() == null) ? 0 : getAno().hashCode());
        result = prime * result + ((getPrno() == null) ? 0 : getPrno().hashCode());
        result = prime * result + ((getBkno() == null) ? 0 : getBkno().hashCode());
        result = prime * result + ((getBname() == null) ? 0 : getBname().hashCode());
        result = prime * result + ((getBdate() == null) ? 0 : getBdate().hashCode());
        result = prime * result + ((getBauthor() == null) ? 0 : getBauthor().hashCode());
        result = prime * result + ((getBprice() == null) ? 0 : getBprice().hashCode());
        result = prime * result + ((getBdescribe() == null) ? 0 : getBdescribe().hashCode());
        result = prime * result + ((getBnumber() == null) ? 0 : getBnumber().hashCode());
        result = prime * result + ((getBheat() == null) ? 0 : getBheat().hashCode());
        result = prime * result + ((getBimg() == null) ? 0 : getBimg().hashCode());
        result = prime * result + ((getBstate() == null) ? 0 : getBstate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", bno=").append(bno);
        sb.append(", ano=").append(ano);
        sb.append(", prno=").append(prno);
        sb.append(", bkno=").append(bkno);
        sb.append(", bname=").append(bname);
        sb.append(", bdate=").append(bdate);
        sb.append(", bauthor=").append(bauthor);
        sb.append(", bprice=").append(bprice);
        sb.append(", bdescribe=").append(bdescribe);
        sb.append(", bnumber=").append(bnumber);
        sb.append(", bheat=").append(bheat);
        sb.append(", bimg=").append(bimg);
        sb.append(", bstate=").append(bstate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}